require("../../../utils/function.js");

var e = require("../../../api.js"), a = getApp(), t = require("../../../wxParse/wxParse.js");

Page({
    data: {
        article: ""
    },
    onLoad: function(e) {
        e.uid && a.shareCouponsMessage(e.uid);
    },
    intoPageHandler: function(e) {
        wx.navigateTo({
            url: "/pages/driver/personalInformation/personalInformation"
        });
    },
    onReady: function() {},
    onShow: function() {
        var o = this;
        console.log("2222222222222onShow"), a.request({
            url: e.user.agreement,
            method: "post",
            data: {},
            success: function(e) {
                console.log("代驾服务协议", e.data), o.setData({
                    art_title: e.data.title,
                    article: e.data
                }), console.log(e.data.title), t.wxParse("article", "html", e.data.content, o, 5);
            }
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        var e = a.shareAppMessage().title, t = a.shareAppMessage().imageUrl, o = a.shareAppMessage().desc, n = a.shareAppMessage().path;
        return console.log(a.shareAppMessage()), {
            title: e,
            imageUrl: t,
            desc: o,
            path: n
        };
    }
});